<template>
  <div class="mc-layout">

  </div>
</template>

<script>
export default {
  name: 'mc-layout',
  data () {
    return {
    }
  },
}
</script>

<style>
  .mc-layout-l-r{
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
  }
  .mc-layout-l-r>.mc-layout-l{
    width: 20%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
  .mc-layout-l-r>.mc-layout-r{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
/*九宫格*/
  .mc-layout-9{
    flex-flow: row wrap;
    display: flex;
  }
  .mc-layout-9-item{
    width: 33.3%;
    height: 33.3%;
    box-sizing: border-box;
  }

  .mc-layout-margin-2>*{ margin:2px;}
  .mc-layout-margin-4>*{ margin:4px;}
  .mc-layout-margin-6>*{ margin:6px;}
  .mc-layout-margin-8>*{ margin:8px;}
  .mc-layout-margin-10>*{ margin:10px;}

  .mc-layout-margin-top-2>*{ margin-top:2px;}
  .mc-layout-margin-top-4>*{ margin-top:4px;}
  .mc-layout-margin-top-6>*{ margin-top:6px;}
  .mc-layout-margin-top-8>*{ margin-top:8px;}
  .mc-layout-margin-top-10>*{ margin-top:10px;}

  .mc-layout-margin-bottom-2>*{ margin-bottom:2px;}
  .mc-layout-margin-bottom-4>*{ margin-bottom:4px;}
  .mc-layout-margin-bottom-6>*{ margin-bottom:6px;}
  .mc-layout-margin-bottom-8>*{ margin-bottom:8px;}
  .mc-layout-margin-bottom-10>*{ margin-bottom:10px;}

  .mc-layout-margin-left-2>*{ margin-left:2px;}
  .mc-layout-margin-left-4>*{ margin-left:4px;}
  .mc-layout-margin-left-6>*{ margin-left:6px;}
  .mc-layout-margin-left-8>*{ margin-left:8px;}
  .mc-layout-margin-left-10>*{ margin-left:10px;}

  .mc-layout-margin-right-2>*{ margin-right:2px;}
  .mc-layout-margin-right-4>*{ margin-right:4px;}
  .mc-layout-margin-right-6>*{ margin-right:6px;}
  .mc-layout-margin-right-8>*{ margin-right:8px;}
  .mc-layout-margin-right-10>*{ margin-right:10px;}
  /*父子高占比100%*/
  .mc-layout-height-100{
    height: 100%;
  }
  .mc-layout-children-height-100>*{
    height: 100%;
  }
  /*父子宽占比100%*/
  .mc-layout-width-100{
    width: 100%;
  }
  .mc-layout-children-width-100>*{
    width: 100%;
  }

</style>
